package org.eiahe.hr.salary.domain.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.ehe.common.core.validate.AddGroup;
import org.ehe.common.core.validate.EditGroup;
import org.ehe.common.core.xss.Xss;
import org.ehe.common.mybatis.core.domain.BaseEntity;
import org.eiahe.hr.salary.domain.EmployeePhoneAssociation;

import java.util.Date;

/**
 * 员工手机关联业务对象 hr_employee_phone_association
 *
 * @author zhangnn
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = EmployeePhoneAssociation.class, reverseConvertGenerate = false)
public class EmployeePhoneAssociationBo extends BaseEntity {

    /**
     * 关联ID
     */
    @NotNull(message = "关联ID不能为空", groups = { EditGroup.class })
    private Long associationId;

    /**
     * 租户ID
     */
    private String tenantId;

    /**
     * 工号
     */
    @NotBlank(message = "工号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String employeeNo;

    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phoneNumber;

    /**
     * 关联时间
     */
    @NotNull(message = "关联时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date associationTime;

    /**
     * 验证状态(0未验证 1已验证)
     */
    private String verificationStatus;

    /**
     * 验证方式(短信验证码/人脸识别)
     */
    private String verificationMethod;

    /**
     * 备注
     */
    @Xss(message = "备注不能包含脚本字符")
    private String remark;
}